package com.hdoit.apollo.logical.cargo.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.hdoit.apollo.logical.cargo.dao.ICollocationDao;
import com.hdoit.apollo.logical.cargo.model.Collocation;
import com.hdoit.apollo.logical.cargo.service.ICollocationService;
import com.tennetcn.data.dao.base.impl.SuperService;
/**
 * @author      humaoshu
 * @email       
 * @createtime  2018年04月02日 11:22:41
 * @comment
 */
@Component
public class CollocationServiceImpl extends SuperService<Collocation> implements ICollocationService{

	@Autowired
	private ICollocationDao collocationDao;
	
	@Override
	public List<Collocation> queryListByCargoId(String cargoId) {
		
		return collocationDao.queryListByCargoId(cargoId);
	}

	@Override
	public boolean deleteByCargoId(String cargoId) {
		return collocationDao.deleteByCargoId(cargoId);
	}

	@Override
	public Collocation queryModelByCargo(String collocationId) {
		
		return collocationDao.queryModelByCargo(collocationId);
	}

	@Override
	public List<Collocation> queryListForWechatByCargoId(String cargoId,
			String shopId) {
		return collocationDao.queryListForWechatByCargoId(cargoId,shopId);
	}

}